package com.bm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ejyy_property_fee_order
 */
@TableName(value ="ejyy_property_fee_order")
@Data
public class EjyyPropertyFeeOrder implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long propertyFeeId;

    /**
     * 
     */
    private Long wechatMpUserId;

    /**
     * 
     */
    private String transactionId;

    /**
     * 
     */
    private String prepayId;

    /**
     * 
     */
    private Boolean paid;

    /**
     * 
     */
    private Long paidAt;

    /**
     * 
     */
    private Boolean cancel;

    /**
     * 
     */
    private Long cancelAt;

    /**
     * 
     */
    private Byte refunding;

    /**
     * 
     */
    private Boolean refunded;

    /**
     * 
     */
    private Boolean isCash;

    /**
     * 
     */
    private Integer fee;

    /**
     * 
     */
    private Integer paidFee;

    /**
     * 
     */
    private Long createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EjyyPropertyFeeOrder other = (EjyyPropertyFeeOrder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPropertyFeeId() == null ? other.getPropertyFeeId() == null : this.getPropertyFeeId().equals(other.getPropertyFeeId()))
            && (this.getWechatMpUserId() == null ? other.getWechatMpUserId() == null : this.getWechatMpUserId().equals(other.getWechatMpUserId()))
            && (this.getTransactionId() == null ? other.getTransactionId() == null : this.getTransactionId().equals(other.getTransactionId()))
            && (this.getPrepayId() == null ? other.getPrepayId() == null : this.getPrepayId().equals(other.getPrepayId()))
            && (this.getPaid() == null ? other.getPaid() == null : this.getPaid().equals(other.getPaid()))
            && (this.getPaidAt() == null ? other.getPaidAt() == null : this.getPaidAt().equals(other.getPaidAt()))
            && (this.getCancel() == null ? other.getCancel() == null : this.getCancel().equals(other.getCancel()))
            && (this.getCancelAt() == null ? other.getCancelAt() == null : this.getCancelAt().equals(other.getCancelAt()))
            && (this.getRefunding() == null ? other.getRefunding() == null : this.getRefunding().equals(other.getRefunding()))
            && (this.getRefunded() == null ? other.getRefunded() == null : this.getRefunded().equals(other.getRefunded()))
            && (this.getIsCash() == null ? other.getIsCash() == null : this.getIsCash().equals(other.getIsCash()))
            && (this.getFee() == null ? other.getFee() == null : this.getFee().equals(other.getFee()))
            && (this.getPaidFee() == null ? other.getPaidFee() == null : this.getPaidFee().equals(other.getPaidFee()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPropertyFeeId() == null) ? 0 : getPropertyFeeId().hashCode());
        result = prime * result + ((getWechatMpUserId() == null) ? 0 : getWechatMpUserId().hashCode());
        result = prime * result + ((getTransactionId() == null) ? 0 : getTransactionId().hashCode());
        result = prime * result + ((getPrepayId() == null) ? 0 : getPrepayId().hashCode());
        result = prime * result + ((getPaid() == null) ? 0 : getPaid().hashCode());
        result = prime * result + ((getPaidAt() == null) ? 0 : getPaidAt().hashCode());
        result = prime * result + ((getCancel() == null) ? 0 : getCancel().hashCode());
        result = prime * result + ((getCancelAt() == null) ? 0 : getCancelAt().hashCode());
        result = prime * result + ((getRefunding() == null) ? 0 : getRefunding().hashCode());
        result = prime * result + ((getRefunded() == null) ? 0 : getRefunded().hashCode());
        result = prime * result + ((getIsCash() == null) ? 0 : getIsCash().hashCode());
        result = prime * result + ((getFee() == null) ? 0 : getFee().hashCode());
        result = prime * result + ((getPaidFee() == null) ? 0 : getPaidFee().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", propertyFeeId=").append(propertyFeeId);
        sb.append(", wechatMpUserId=").append(wechatMpUserId);
        sb.append(", transactionId=").append(transactionId);
        sb.append(", prepayId=").append(prepayId);
        sb.append(", paid=").append(paid);
        sb.append(", paidAt=").append(paidAt);
        sb.append(", cancel=").append(cancel);
        sb.append(", cancelAt=").append(cancelAt);
        sb.append(", refunding=").append(refunding);
        sb.append(", refunded=").append(refunded);
        sb.append(", isCash=").append(isCash);
        sb.append(", fee=").append(fee);
        sb.append(", paidFee=").append(paidFee);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}